## AliceVision
## Convertion software

# Software PROPERTY FOLDER is 'Software/Convert'
set(FOLDER_SOFTWARE_CONVERT "Software/Convert")

if(ALICEVISION_BUILD_SFM)
    # Convert SfMData format (from one to another)
    alicevision_add_software(aliceVision_convertSfMFormat
        SOURCE main_convertSfMFormat.cpp
        FOLDER ${FOLDER_SOFTWARE_CONVERT}
        LINKS aliceVision_system
              aliceVision_cmdline
              aliceVision_feature
              aliceVision_sfmData
              aliceVision_sfmDataIO
              Boost::program_options
              Boost::filesystem
              Boost::system
    )

    alicevision_add_software(aliceVision_importKnownPoses
        SOURCE main_importKnownPoses.cpp
        FOLDER ${FOLDER_SOFTWARE_CONVERT}
        LINKS aliceVision_localization
              aliceVision_feature
              aliceVision_sfmData
              aliceVision_sfmDataIO
              aliceVision_cmdline
              Boost::program_options
              Boost::filesystem
              Boost::boost
              Boost::timer
    )
endif() # ALICEVISION_BUILD_SFM


if(ALICEVISION_BUILD_MVS)
    # Merge two meshes
    alicevision_add_software(aliceVision_convertMesh
        SOURCE main_convertMesh.cpp
        FOLDER ${FOLDER_SOFTWARE_CONVERT}
        LINKS aliceVision_system
              aliceVision_numeric
              aliceVision_cmdline
              aliceVision_mesh
              ${Boost_LIBRARIES}
    )
endif() # ALICEVISION_BUILD_MVS